<template>
  <div>
    <!-- <input type="text" :value="msg" @input="msg = $event.target.value"> -->
    <h1>v-model</h1>
    <LoginForm ref="sonForm"></LoginForm>
    <button @click="submitForm">点击提交</button>
  </div>
</template>

<script>
import LoginForm from './components/LoginForm.vue'

export default {
  components: {
    LoginForm,
  },
  data() {
    return {
      msg: 'Hello World',
    }
  },
  methods:{
    submitForm(){
        this.$refs.sonForm.sonSubmit()
    }
  }
}
</script>

<style></style>
